package com.bean;

import java.io.Serializable;

/**
 * 货物类型实体类
 */
public class Type implements Serializable {
    /*主键id*/
    private Integer id;
    /*类型名字*/
    private String stateName;

    public Type() {
    }

    public Type(Integer id) {
        this.id = id;
    }

    public Type(String stateName) {
        this.stateName = stateName;
    }

    public Type(Integer id, String stateName) {
        this.id = id;
        this.stateName = stateName;
    }

    @Override
    public String toString() {
        return "Type{" +
                "id=" + id +
                ", stateName='" + stateName + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }
}
